#include "Teacher.h"
#include <iostream>
#include "Student.h"

Student * student = nullptr;

Teacher::Teacher():m_name("")
{
}

Teacher::Teacher(const std::string& name)
{
	m_name = name;
}

Teacher::~Teacher()
{

}

void Teacher::PrintName()
{
	if (student == nullptr)
	{
		student = new Student("xiaoMing");
	}
	student->PrintName();
	std::cout << "Teacher Name : " << m_name << std::endl;
}